package org.jeecg.modules.lab.utensil.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.lab.utensil.entity.LabUtensilChecklist;
import org.jeecg.modules.lab.utensil.entity.LabUtensilChecklistTo;
import org.jeecg.modules.lab.utensil.entity.MonthList;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description: 器具检测详情清单
 * @Author: jeecg-boot
 * @Date:   2023-08-22
 * @Version: V1.0
 */
@Repository
public interface LabUtensilChecklistMapper extends BaseMapper<LabUtensilChecklist> {

	/**
	 * 通过主表id删除子表数据
	 *
	 * @param mainId 主表id
	 * @return boolean
	 */
	public boolean deleteByMainId(@Param("mainId") String mainId);

  /**
   * 通过主表id查询子表数据
   *
   * @param mainId 主表id
   * @return List<LabUtensilChecklist>
   */
	public List<LabUtensilChecklist> selectByMainId(@Param("mainId") String mainId);


	public List<LabUtensilChecklistTo> queryBy(@Param("uteRef") String uteRef);

	//根据月份统计检测数量
	public List<MonthList> queryMonth(@Param("selYear")String selYear);
}
